package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;

public class WechatMpActShaketicketAward implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 是否卡券0 是1 否
     *
     * @mbg.generated
     */
    private String isCard;

    /**
     * 奖品名称
     *
     * @mbg.generated
     */
    private String awardsName;

    /**
     * 发奖公司
     *
     * @mbg.generated
     */
    private String owner;

    /**
     * 卡券id
     *
     * @mbg.generated
     */
    private String cardId;

    /**
     * 奖品图片
     *
     * @mbg.generated
     */
    private String img;

    /**
     * 单位
     *
     * @mbg.generated
     */
    private String unit;

    /**
     * 公众号原始ID
     *
     * @mbg.generated
     */
    private String jwid;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 奖品描述
     *
     * @mbg.generated
     */
    private String awardsDescribe;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIsCard() {
        return isCard;
    }

    public void setIsCard(String isCard) {
        this.isCard = isCard;
    }

    public String getAwardsName() {
        return awardsName;
    }

    public void setAwardsName(String awardsName) {
        this.awardsName = awardsName;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getAwardsDescribe() {
        return awardsDescribe;
    }

    public void setAwardsDescribe(String awardsDescribe) {
        this.awardsDescribe = awardsDescribe;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", isCard=").append(isCard);
        sb.append(", awardsName=").append(awardsName);
        sb.append(", owner=").append(owner);
        sb.append(", cardId=").append(cardId);
        sb.append(", img=").append(img);
        sb.append(", unit=").append(unit);
        sb.append(", jwid=").append(jwid);
        sb.append(", createBy=").append(createBy);
        sb.append(", awardsDescribe=").append(awardsDescribe);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActShaketicketAward other = (WechatMpActShaketicketAward) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIsCard() == null ? other.getIsCard() == null : this.getIsCard().equals(other.getIsCard()))
            && (this.getAwardsName() == null ? other.getAwardsName() == null : this.getAwardsName().equals(other.getAwardsName()))
            && (this.getOwner() == null ? other.getOwner() == null : this.getOwner().equals(other.getOwner()))
            && (this.getCardId() == null ? other.getCardId() == null : this.getCardId().equals(other.getCardId()))
            && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getAwardsDescribe() == null ? other.getAwardsDescribe() == null : this.getAwardsDescribe().equals(other.getAwardsDescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIsCard() == null) ? 0 : getIsCard().hashCode());
        result = prime * result + ((getAwardsName() == null) ? 0 : getAwardsName().hashCode());
        result = prime * result + ((getOwner() == null) ? 0 : getOwner().hashCode());
        result = prime * result + ((getCardId() == null) ? 0 : getCardId().hashCode());
        result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getAwardsDescribe() == null) ? 0 : getAwardsDescribe().hashCode());
        return result;
    }
}